<?php /*a:4:{s:62:"/www/wwwroot/ams/app/index/view/achievement_audit/details.html";i:1588826994;s:50:"/www/wwwroot/ams/app/index/view/public/header.html";i:1588821168;s:48:"/www/wwwroot/ams/app/index/view/public/page.html";i:1589276120;s:50:"/www/wwwroot/ams/app/index/view/public/footer.html";i:1588833951;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="/static/index/moban/assets/img/apple-icon.png">
    <link rel="icon" type="image/png" href="/static/index/moban/assets/img/favicon.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>成果审核 | <?php echo htmlentities($system_name); ?></title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
        name='viewport' />
    <link href="/static/index/moban/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/static/index/moban/assets/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
    <link href="/static/index/moban/assets/css/font-awesome.min.css" rel="stylesheet" />
</head>

<body class="index-page sidebar-collapse">

    <!-- 引入导航栏 -->
    <nav class="navbar navbar-expand-lg bg-info fixed-top">
    <div class="container">
        <div class="navbar-translate">
            <div class="navbar-brand text-white" style="font-size: 22px;"><?php echo htmlentities($system_name); ?></div>
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
                data-target="#example-navbar-info" aria-controls="navbarSupportedContent" aria-expanded="false"
                aria-label="Toggle navigation">
                <span class="navbar-toggler-bar bar1"></span>
                <span class="navbar-toggler-bar bar2"></span>
                <span class="navbar-toggler-bar bar3"></span>
            </button>
        </div>

        <div class="collapse navbar-collapse justify-content-end has-image" id="example-navbar-info">
            <ul class="navbar-nav">
                <li class="nav-item" style="float: right;">
                    <a class="nav-link" href="<?php echo url('index/index'); ?>">
                        <p style="font-size: 16px;">首页</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('index/notice_list'); ?>">
                        <p style="font-size: 16px;">更多资讯</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('index/link'); ?>">
                        <p style="font-size: 16px;">友情链接</p>
                    </a>
                </li>
                <?php if($user_info): ?>
                <li class="nav-item active">
                    <a class="nav-link" href="<?php echo url('User/index'); ?>">
                        <p><?php echo htmlentities($user_info->name); ?></p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/logout'); ?>">
                        <p>退出</p>
                    </a>
                </li>
                <?php else: if($registered): ?>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/index'); ?>">
                        <p>登录</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/register'); ?>">
                        <p>注册</p>
                    </a>
                </li>
                <?php else: ?>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/index'); ?>">
                        <p>登录</p>
                    </a>
                </li>
                <?php endif; ?>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</nav>
<!-- 向下推65像素 -->
<div style="height: 65px;"></div>

<!-- 防止闪屏 -->
<script src="/static/index/moban/assets/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
<!-- Code JS File -->
<script src="/static/index/moban/assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="/static/index/moban/assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="/static/index/moban/assets/js/core/bootstrap.min.js" type="text/javascript"></script>

<!-- 弹出层 -->
<script src="/static/admin/lib/layer/layer.js"></script>

<!-- 模板动作 -->
<script src="/static/index/moban/assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        // the body of this function is in assets/js/now-ui-kit.js
        nowuiKit.initSliders();
    });

    function scrollToDownload() {

        if ($('.section-download').length != 0) {
            $("html, body").animate({
                scrollTop: $('.section-download').offset().top
            }, 1000);
        }
    }
</script>

    <div class="container" style="min-height: 490px;">
        <!-- 个人信息 -->
        <div class="row">
            <div class="col-md-12">
                <h3>成果审核详情
                    <span style="font-size: 16px;color: red;"><?php echo htmlentities($classify_info['name']); ?></span>
                </h3>
            </div>
            <div class="col-md-12">
                <button class="btn btn-danger" onclick="back('<?php echo htmlentities($uid); ?>')">返回上一页</button>
            </div>
        </div>
        <div class="row">

            <table class="table table-hover">
                <thead>
                    <tr>
                        <th style='vertical-align: middle;text-align: center;'>#</th>
                        <th style='vertical-align: middle;text-align: center;'>姓名</th>
                        <th style='vertical-align: middle;text-align: center;'>提交审核的数量</th>
                        <th style='vertical-align: middle;text-align: center;'>操作</th>
                    </tr>
                <tbody>
                    <?php if(is_array($user_list) || $user_list instanceof \think\Collection || $user_list instanceof \think\Paginator): $i = 0; $__LIST__ = $user_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
                    <tr>
                        <td style='vertical-align: middle;text-align: center;'><?php echo htmlentities($row['id']); ?></td>
                        <td style='vertical-align: middle;text-align: center;'><?php echo htmlentities($row['name']); ?></td>
                        <td style='vertical-align: middle;text-align: center;'><?php echo htmlentities($row['count']); ?></td>
                        <td style='vertical-align: middle;text-align: center;'>
                            <button class="btn btn-success btn-round" onclick="audit('<?php echo htmlentities($cid); ?>','<?php echo htmlentities($row['id']); ?>')">审核</button>
                            <button class="btn btn-success btn-round"
                                onclick="audit_details('<?php echo htmlentities($cid); ?>','<?php echo htmlentities($row['id']); ?>')">审核详情</button>
                        </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
                </thead>
            </table>

        </div>
        <div class="row">
            <!-- 加载分页页面 -->
            <?php if($page_res['len']): ?>
<div class="col-md-12">
    <div class="pagination pagination-primary" style="display: inline-block; text-align: center;">
        <?php if(is_array($page_res['len']) || $page_res['len'] instanceof \think\Collection || $page_res['len'] instanceof \think\Paginator): $i = 0; $__LIST__ = $page_res['len'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
        <div class="page-item <?php echo $page_res['p']==$row+1 ? 'active'  :  ''; ?>" style="float: left; ">
            <a class="page-link" href="<?php echo htmlentities($page_res['url']); ?>&p=<?php echo htmlentities($row); ?>"><?php echo htmlentities($row+1); ?></a>
        </div>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
</div>
<?php endif; ?>
        </div>
    </div>

    <!-- 引入页脚 -->
    <footer class="footer " style="background-color: #ddd;">
    <div style="text-align: center;">
        Copyright © 2020 夏立军 山东建筑大学-<?php echo htmlentities($system_name); ?> 201611106025
    </div>
</footer>

    <script>

        // 详情页面
        function details(cid) {
            redirect_url("<?php echo url('achievement_audit/details'); ?>?cid=" + cid);
        }

        // 审核
        function audit(cid, uid) {
            redirect_url("<?php echo url('achievement_audit/audit'); ?>?cid=" + cid + "&uid=" + uid);
        }

        // 返回上一页
        function back(uid) {
            redirect_url("<?php echo url('achievement_audit/index'); ?>?uid=" + uid);
        }

        // 审核详情页面
        function audit_details(cid, uid) {
            redirect_url("<?php echo url('achievement_audit/audit_details'); ?>?cid=" + cid + "&uid=" + uid);
        }

        // 重定向
        function redirect_url(url) {
            window.location.href = url;
        }
    </script>

</body>

</html>